package feifei;

import java.io.Serializable;

import java.util.Objects;

public class User implements Serializable {
    private static final long serialVersionUID=1l;
    private String userid;
    private String username;
    private String description;

    public User() {
    }

    public User(String id, String username, String description) {
        this.userid = id;
        this.username = username;
        this.description = description;
    }
    public String getUserid() {
        return userid;
    }

    public void setId(String id) {
        this.userid = id;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        User user = (User) o;
        return this.userid==user.getUserid();

    }

    @Override
    public int hashCode() {
        return Objects.hash(userid, username, description);
    }
}
